d/patches: Update patches to apply to new version
authorGert Wollny <gewo@debian.org>
Mon, 6 Aug 2018 12:02:50 +0000 (14:02 +0200)
committerGert Wollny <gewo@debian.org>
Mon, 6 Aug 2018 12:02:50 +0000 (14:02 +0200)
debian/patches/03_datadic_install.patch
debian/patches/04_Fixed-OFoptional-by-introducing-OFalign.patch
debian/patches/05_performance.patch
debian/patches/06_soversion_abi.patch
debian/patches/07_dont_export_all_executables.patch
debian/patches/08_remove_system_processor.patch
debian/patches/09_fix_format_on_32bit.patch

index b6678bafa3847bf6e6bc1456f6c92143730ba229..56c23d1f95dc1fda0f1927f80b67990eae3227b1 100644 (file)
@@ -8,12 +8,12 @@ Author: Mathieu Malaterre <malat@debian.org>
    SET(ENVIRONMENT_PATH_SEPARATOR ";")
    # Set dictionary path to the data dir inside install main dir (prefix)
    IF(DCMTK_ENABLE_EXTERNAL_DICTIONARY)
--    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}\\\\${DCMTK_INSTALL_DATDIR}\\\\dicom.dic")
-+    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}\\\\${DCMTK_INSTALL_DATDIC}\\\\dicom.dic")
+-    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}\\\\${CMAKE_INSTALL_DATADIR}\\\\dcmtk\\\\dicom.dic")
++    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}\\\\${CMAKE_INSTALL_DATADIC}\\\\dcmtk\\\\dicom.dic")
      # If private dictionary should be utilized, add it to default dictionary path.
      IF(ENABLE_PRIVATE_TAGS)
--      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${DCMTK_PREFIX}\\\\${DCMTK_INSTALL_DATDIR}\\\\private.dic")
-+      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${DCMTK_PREFIX}\\\\${DCMTK_INSTALL_DATDIC}\\\\private.dic")
+-      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${DCMTK_PREFIX}\\\\${CMAKE_INSTALL_DATADIR}\\\\dcmtk\\\\private.dic")
++      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${DCMTK_PREFIX}\\\\${CMAKE_INSTALL_DATADIC}\\\\dcmtk\\\\private.dic")
      ENDIF(ENABLE_PRIVATE_TAGS)
       # Again, for Windows strip all / from path and replace it with \\.
      STRING(REGEX REPLACE "/" "\\\\\\\\" DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH}")
@@ -21,24 +21,22 @@ Author: Mathieu Malaterre <malat@debian.org>
    SET(ENVIRONMENT_PATH_SEPARATOR ":")
    # Set dictionary path to the data dir inside install main dir (prefix).
    IF(DCMTK_ENABLE_EXTERNAL_DICTIONARY)
--    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}/${DCMTK_INSTALL_DATDIR}/dicom.dic")
-+    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}/${DCMTK_INSTALL_DATDIC}/dicom.dic")
+-    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}/${CMAKE_INSTALL_DATADIR}/dcmtk/dicom.dic")
++    SET(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}/${CMAKE_INSTALL_DATADIC}/dcmtk/dicom.dic")
      # If private dictionary should be utilized, add it to default dictionary path.
      IF(ENABLE_PRIVATE_TAGS)
--      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH}:${DCMTK_PREFIX}/${DCMTK_INSTALL_DATDIR}/private.dic")
-+      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH}:${DCMTK_PREFIX}/${DCMTK_INSTALL_DATDIC}/private.dic")
+-      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH}:${DCMTK_PREFIX}/${CMAKE_INSTALL_DATADIR}/dcmtk/private.dic")
++      SET(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH}:${DCMTK_PREFIX}/${CMAKE_INSTALL_DATADIC}/dcmtk/private.dic")
      ENDIF(ENABLE_PRIVATE_TAGS)
    ELSE(DCMTK_ENABLE_EXTERNAL_DICTIONARY)
      SET(DCM_DICT_DEFAULT_PATH "")
 --- a/dcmdata/data/CMakeLists.txt
 +++ b/dcmdata/data/CMakeLists.txt
-@@ -1,6 +1,7 @@
+@@ -1,5 +1,6 @@
  # declare installation files
--INSTALL(FILES dicom.dic acrnema.dic private.dic diconde.dic dcm2xml.dtd dumppat.txt SC.dump VLP.dump DESTINATION "${DCMTK_INSTALL_DATDIR}" COMPONENT data)
--
+-INSTALL(FILES dicom.dic acrnema.dic private.dic diconde.dic dcm2xml.dtd dumppat.txt SC.dump VLP.dump DESTINATION "${CMAKE_INSTALL_DATADIR}/dcmtk" COMPONENT data)
 +INSTALL(FILES dcm2xml.dtd dumppat.txt SC.dump VLP.dump DESTINATION ${DCMTK_INSTALL_DATDIR} COMPONENT data)
 +INSTALL(FILES dicom.dic acrnema.dic private.dic diconde.dic DESTINATION ${DCMTK_INSTALL_DATDIC} COMPONENT data)
-+ 
  # add paths to the dictionaries to a CMake variable for being used by the unit tests
  SET(DCMTK_DICOM_DICTIONARIES
-   "${CMAKE_CURRENT_SOURCE_DIR}/dicom.dic"
index 1d9fc5fac1e73f88488566e57f6f2e0b67f08241..6fab7dd1a6fffea001deb1fc0bcef79766ea602d 100644 (file)
@@ -4,7 +4,7 @@ Date: Fri, 4 Jul 2014 12:02:51 +0200
 Subject: [PATCH] Fixed OFoptional by introducing OFalign?
 --- a/CMake/osconfig.h.in
 +++ b/CMake/osconfig.h.in
-@@ -1162,4 +1162,7 @@
+@@ -1165,4 +1165,7 @@
  /* Define if we are supposed to use STL's system_error */
  #cmakedefine HAVE_STL_SYSTEM_ERROR @HAVE_STL_SYSTEM_ERROR@
  
@@ -14,7 +14,7 @@ Subject: [PATCH] Fixed OFoptional by introducing OFalign?
  #endif /* !OSCONFIG_H*/
 --- a/config/aclocal.m4
 +++ b/config/aclocal.m4
-@@ -1922,6 +1922,47 @@
+@@ -1953,6 +1953,47 @@
      fi
  ])
  
@@ -64,7 +64,7 @@ Subject: [PATCH] Fixed OFoptional by introducing OFalign?
  dnl This macro checks if a given preprocessor symbol exists and is a string
 --- a/config/configure
 +++ b/config/configure
-@@ -16711,6 +16711,66 @@
+@@ -16752,6 +16752,66 @@
  fi
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  
index 2b8a9f43e22aff6e4387d14f8d938c8efa04175e..112eb21bfb0e6ceba2095cd121f4a0c1c826bfbf 100644 (file)
@@ -5,7 +5,7 @@ Author: Sebastien Jodogne <s.jodogne@chu.ulg.ac.be>
 Last-Update: Fri, 15 May 2015 16:39:01 UTC
 --- a/dcmnet/libsrc/dul.cc
 +++ b/dcmnet/libsrc/dul.cc
-@@ -1862,7 +1862,7 @@
+@@ -1897,7 +1897,7 @@
          msg += OFStandard::getLastNetworkErrorCode().message();
          return makeDcmnetCondition(DULC_TCPINITERROR, OF_error, msg.c_str());
      }
@@ -16,7 +16,7 @@ Last-Update: Fri, 15 May 2015 16:39:01 UTC
       * Disable the so-called Nagle algorithm (if requested).
 --- a/dcmnet/libsrc/dulfsm.cc
 +++ b/dcmnet/libsrc/dulfsm.cc
-@@ -2447,7 +2447,7 @@
+@@ -2461,7 +2461,7 @@
            msg += OFStandard::getLastNetworkErrorCode().message();
            return makeDcmnetCondition(DULC_TCPINITERROR, OF_error, msg.c_str());
          }
index e293e58bdd46a00dd6dbdf573ce221d92ccb0924..7459448b41da4b1074f855d8119775ea770bc8d9 100644 (file)
@@ -4,7 +4,7 @@ Last-Update: 2016-04-09
 
 --- a/CMake/dcmtkPrepare.cmake
 +++ b/CMake/dcmtkPrepare.cmake
-@@ -56,7 +56,7 @@
+@@ -55,7 +55,7 @@
  #SET(DCMTK_PACKAGE_URL "http://www.dcmtk.org/")
  
  # Shared library version information
index a983d3cbb97f65b54e6bc6ea8bca29115b23a885..dd1d9c72e3f4f3f6887e98242816b40d356e6758 100644 (file)
@@ -8,7 +8,7 @@ Bug-Debian: https://bugs.debian.org/803304
 Author: Gert Wollny <gw.fossdev@gmail.com>
 --- a/CMake/dcmtkMacros.cmake
 +++ b/CMake/dcmtkMacros.cmake
-@@ -55,11 +55,11 @@
+@@ -60,11 +60,11 @@
          ENDIF(WIN32 AND NOT MINGW)
  
          # Collect executable as part of global DCMTK_EXECUTABLE_TARGETS property
@@ -20,5 +20,5 @@ Author: Gert Wollny <gw.fossdev@gmail.com>
 -                EXPORT DCMTKTargets
 +#                EXPORT DCMTKTargets
                  COMPONENT bin
-                 DESTINATION ${DCMTK_INSTALL_BINDIR})
+                 DESTINATION ${CMAKE_INSTALL_BINDIR})
      ENDIF(BUILD_APPS)
index 880bdf293d39cebf4379fdd0b24ec628b6d1d20c..688d00650237c1076538c23e7d3a75e6ef4af88f 100644 (file)
@@ -23,7 +23,7 @@ Author: Gert Wollny <gw.fossdev@gmail.com>
  IF(WIN32 AND NOT CYGWIN)
 --- a/CMake/dcmtkPrepare.cmake
 +++ b/CMake/dcmtkPrepare.cmake
-@@ -389,11 +389,6 @@
+@@ -376,11 +376,6 @@
    OPTION(DCMTK_FORCE_FPIC_ON_UNIX "Add -fPIC compiler flag on unix 64 bit machines to allow linking from dynamic libraries even if DCMTK is built statically" OFF)
    MARK_AS_ADVANCED(DCMTK_FORCE_FPIC_ON_UNIX)
  
index 515f5d0a129158e5fe7c695adeaa93a1053f7ac0..8cf58485485c6afd86b773cb0662ff895213a45a 100644 (file)
@@ -34,24 +34,7 @@ Last-Changed: 2017-09-06
        nextIsItem = OFFalse;
 --- a/dcmdata/libsrc/dcvrul.cc
 +++ b/dcmdata/libsrc/dcvrul.cc
-@@ -178,15 +178,10 @@
-             {
-                 /* check whether first value is printed (omit delimiter) */
-                 if (i == 0)
--#if SIZEOF_LONG == 8
-                     sprintf(buffer, "%u", *uintVals);
-                 else
-                     sprintf(buffer, "\\%u", *uintVals);
--#else
--                    sprintf(buffer, "%lu", *uintVals);
--                else
--                    sprintf(buffer, "\\%lu", *uintVals);
--#endif
-+
-                 /* check whether current value sticks to the length limit */
-                 newLength = printedLength + OFstatic_cast(unsigned long, strlen(buffer));
-                 if ((newLength <= maxLength) && ((i + 1 == count) || (newLength + 3 <= maxLength)))
-@@ -325,11 +320,7 @@
+@@ -334,11 +334,7 @@
              /* get specified value from multi-valued string */
              pos = DcmElement::getValueFromString(stringVal, pos, stringLen, value);
              if (value.empty() ||
@@ -79,25 +62,7 @@ Last-Changed: 2017-09-06
                  /* jump to next time offset */
 --- a/dcmdata/libsrc/dcvrsl.cc
 +++ b/dcmdata/libsrc/dcvrsl.cc
-@@ -177,17 +177,10 @@
-             for (unsigned int i = 0; i < count; i++, sintVals++)
-             {
-                 /* check whether first value is printed (omit delimiter) */
--#if SIZEOF_LONG == 8
-                 if (i == 0)
-                     sprintf(buffer, "%d", *sintVals);
-                 else
-                     sprintf(buffer, "\\%d", *sintVals);
--#else
--                if (i == 0)
--                    sprintf(buffer, "%ld", *sintVals);
--                else
--                    sprintf(buffer, "\\%ld", *sintVals);
--#endif
-                 /* check whether current value sticks to the length limit */
-                 newLength = printedLength + OFstatic_cast(unsigned long, strlen(buffer));
-                 if ((newLength <= maxLength) && ((i + 1 == count) || (newLength + 3 <= maxLength)))
-@@ -326,11 +319,7 @@
+@@ -335,11 +335,7 @@
              /* get specified value from multi-valued string */
              pos = DcmElement::getValueFromString(stringVal, pos, stringLen, value);
              if (value.empty() ||